package test;

import java.util.List;

import data.JDBCLogin;
import domain.Noticias;
import domain.Usuario;
import processor.NoticiaProcessor;

public class test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		NoticiaProcessor n= new NoticiaProcessor();
		//n.insertarNoticia2("Noticia1","Entradilla", "Descripcions", "Madrid",1,0,1,0,1);
		
		
		JDBCLogin l= new JDBCLogin();
		//System.out.println(l.singIn("admin",""));
		
		Usuario u=l.obtenerUsuario(1);
		System.out.println(u.toString());
		
		List<Noticias> noticias= n.listarNoticiasEsp(u);
		for(Noticias not: noticias){
			
			System.out.println(not.toString());
		}
		
		System.out.println(l.obtenerID("admin", "admin"));
		
		//l.insertarUsuario("luis", "luis", "luis", "luis", "luis", 0, 1, 1, 1);
		

	}

}
